<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>登录</title>
<script type="text/javascript">
function validate(){
	if(form.account.value==""){
		alert("账号不能为空");
		return false;
	}
	if(form.account.value.indexOf(",")>-1||form.account.value.indexOf("，")>-1){
		alert("账号不能包含逗号");
		return false;
	}
	if(form.password.value==""){
		alert("密码不能为空");
		return false;
	}
}
</script>
</head>
<body>
<form action="${pageContext.request.contextPath }/user/login.action" method="post" onsubmit="return validate()" name="form">
	账号：<input type="text" name="account"><br>
	密码：<input type="password" name="password"><br>
	<input type="submit" value="登录">
</form> 
</body>
</html>